import http from "@/plugins/http";

class WxGateUser {
  constructor() {
    this.basic_url = "/wx-gate-user";
  }

  test(then) {
    http.get(this.basic_url, then);
  }

  login(obj, then) {
    http.post(this.basic_url + "/login", obj, then);
  }

  logout(then) {
    http.get(this.basic_url + "/logout", then);
  }

  changePassword(obj, then) {
    http.put(this.basic_url + "/change-pwd", obj, then);
  }
}

export default WxGateUser;
